import time
from loguru import logger
from pathlib import   Path
import os


basedir = Path(__file__).parent.parent
print(basedir)
log_file = os.path.join(basedir,'logs')
print(log_file)

date = time.strftime('%Y%m%d')
print(date)

log_path_all = os.path.join(log_file,f'{date}_log.log')
print(log_path_all)

logger.add(log_path_all)

